import Mock from 'mockjs';

export default [
    Mock.mock('/api/products', [
        {
            id: '09',
            type: 'CREDIT_CARD',
            name: 'Gem Visa',
        },
        {
            id: '10',
            type: 'CREDIT_CARD',
            name: '28 Degrees',
        },
        {
            id: '11',
            type: 'PERSONAL_LOAN',
            name: 'MyFlexiPay',
        },
    ]),

    Mock.mock('/api/product/09', {
        id: '09',
        type: 'CREDIT_CARD',
        name: 'Gem Visa',
        color: 'red',
        version: 'v1',
    }),

    Mock.mock('/api/product/10', {
        id: '10',
        type: 'CREDIT_CARD',
        name: '28 Degrees',
        color: 'blue',
        version: 'v1',
    }),

    Mock.mock('/api/product/11', {
        id: '11',
        type: 'PERSONAL_LOAN',
        name: 'MyFlexiPay',
        color: 'black',
        version: 'v2',
    }),
];
